package com.ruoyi.sale.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单退货对象 erp_order_return
 *
 * @author ruoyi
 * @date 2025-04-15
 */
public class ErpOrderReturns extends BaseEntity
{
    private List<ErpGoodss> returnGoodsList;

    public List<ErpGoodss> getReturnGoodsList() {
        return returnGoodsList;
    }

    public void setReturnGoodsList(List<ErpGoodss> returnGoodsList) {
        this.returnGoodsList = returnGoodsList;
    }
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 退货单编号 */
    @Excel(name = "退货单编号")
    private String sn;

    /** 要退货的订单id */
    @Excel(name = "要退货的订单id")
    private Long orderId;

    /** 要退货的订单编号 */
    @Excel(name = "要退货的订单编号")
    private String orderSn;

    /** 要退货的订单类型 */
    @Excel(name = "要退货的订单类型")
    private String orderType;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 仓库id */
    @Excel(name = "仓库id")
    private Long warehouseId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /** 销售经理 */
    @Excel(name = "销售经理")
    private String distributionName;

    /** 经手人id */
    @Excel(name = "经手人id")
    private Long handleById;

    /** 经手人名称 */
    @Excel(name = "经手人名称")
    private String handleByName;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 退货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    /** 审核人id */
    @Excel(name = "审核人id")
    private Long auditById;

    /** 审核人 */
    @Excel(name = "审核人")
    private String auditBy;

    /** 审核备注 */
    @Excel(name = "审核备注")
    private String auditRemark;

    /** 退货说明 */
    @Excel(name = "退货说明")
    private String returnRemark;
//    private List<ReturnGoodsItem> returnGoodsList;
//
//    // 添加 getter 和 setter
//    public List<ReturnGoodsItem> getReturnGoodsList() {
//        return returnGoodsList;
//    }
//
//    public void setReturnGoodsList(List<ReturnGoodsItem> returnGoodsList) {
//        this.returnGoodsList = returnGoodsList;
//    }



    /** 创建者 */
    @Excel(name = "创建者")
    private String creator;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updater;

    private String owner_name;

    private String order_time;

    public String getOrder_time() {
        return order_time;
    }

    public void setOrder_time(String order_time) {
        this.order_time = order_time;
    }

    public String getOwner_name() {
        return owner_name;
    }

    public void setOwner_name(String owner_mobile) {
        this.owner_name = owner_mobile;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setSn(String sn)
    {
        this.sn = sn;
    }

    public String getSn()
    {
        return sn;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setOrderSn(String orderSn)
    {
        this.orderSn = orderSn;
    }

    public String getOrderSn()
    {
        return orderSn;
    }
    public void setOrderType(String orderType)
    {
        this.orderType = orderType;
    }

    public String getOrderType()
    {
        return orderType;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setWarehouseId(Long warehouseId)
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId()
    {
        return warehouseId;
    }
    public void setDeptName(String deptName)
    {
        this.deptName = deptName;
    }

    public String getDeptName()
    {
        return deptName;
    }
    public void setWarehouseName(String warehouseName)
    {
        this.warehouseName = warehouseName;
    }

    public String getWarehouseName()
    {
        return warehouseName;
    }
    public void setDistributionName(String distributionName)
    {
        this.distributionName = distributionName;
    }

    public String getDistributionName()
    {
        return distributionName;
    }
    public void setHandleById(Long handleById)
    {
        this.handleById = handleById;
    }

    public Long getHandleById()
    {
        return handleById;
    }
    public void setHandleByName(String handleByName)
    {
        this.handleByName = handleByName;
    }

    public String getHandleByName()
    {
        return handleByName;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setReturnTime(Date returnTime)
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime()
    {
        return returnTime;
    }
    public void setAuditById(Long auditById)
    {
        this.auditById = auditById;
    }

    public Long getAuditById()
    {
        return auditById;
    }
    public void setAuditBy(String auditBy)
    {
        this.auditBy = auditBy;
    }

    public String getAuditBy()
    {
        return auditBy;
    }
    public void setAuditRemark(String auditRemark)
    {
        this.auditRemark = auditRemark;
    }

    public String getAuditRemark()
    {
        return auditRemark;
    }
    public void setReturnRemark(String returnRemark)
    {
        this.returnRemark = returnRemark;
    }

    public String getReturnRemark()
    {
        return returnRemark;
    }
    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public String getCreator()
    {
        return creator;
    }
    public void setUpdater(String updater)
    {
        this.updater = updater;
    }

    public String getUpdater()
    {
        return updater;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sn", getSn())
            .append("orderId", getOrderId())
            .append("orderSn", getOrderSn())
            .append("orderType", getOrderType())
            .append("deptId", getDeptId())
            .append("warehouseId", getWarehouseId())
            .append("deptName", getDeptName())
            .append("warehouseName", getWarehouseName())
            .append("distributionName", getDistributionName())
            .append("handleById", getHandleById())
            .append("handleByName", getHandleByName())
            .append("status", getStatus())
            .append("returnTime", getReturnTime())
            .append("auditById", getAuditById())
            .append("auditBy", getAuditBy())
            .append("auditRemark", getAuditRemark())
            .append("returnRemark", getReturnRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("creator", getCreator())
            .append("updater", getUpdater())
            .toString();
    }
}
